package com.ruoyi.patrol.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.patrol.domain.PtCatalog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zyh
 */
@Mapper
public interface PtCatalogMapper extends BaseMapper<PtCatalog> {

    int insertCatalog(PtCatalog catalog);

    List<PtCatalog> selectCatalogList();

    int updateCatalog(PtCatalog catalog);

    int hasChildByCatId(@Param("catId") Long catId);

    int deleteCatalogById(@Param("catId") Long catId);

    PtCatalog selectCatalogByCatId(@Param("catId") Long catId);
}
